from flask import current_app

from . import html_blue


@html_blue.route('/<html:filename>')
def html(filename):
    if not filename:
        filename = 'index.html'
    filename = 'html/'+filename
    html = current_app.send_static_file(filename)
    return html

